package com.aluvfy.jdbc;

import com.aluvfy.jdbc.utils.Dbutils2;

import java.sql.Connection;

/**
 * @author: aluvfy
 * @description: 使用改造后的Dbutils
 * @date: 2024/10/22 22:22
 */
public class JDBCTest25 {
    public static void main(String[] args) throws  Exception{
        Connection connection1 = Dbutils2.getConnection();
        Connection connection2 = Dbutils2.getConnection();
        Connection connection3 = Dbutils2.getConnection();
        Connection connection4 = Dbutils2.getConnection();
        Connection connection5 = Dbutils2.getConnection();

        System.out.println(connection1);
        System.out.println(connection2);
        System.out.println(connection3);
        System.out.println(connection4);
        System.out.println(connection5);

        connection1.close();
        connection2.close();
        connection3.close();
        connection4.close();
        connection5.close();

    }
}
